Optimal. Leaf size=239 \[ -\frac{d \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 \sqrt{-a} b^{3/2}}+\frac{d \sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 \sqrt{-a} b^{3/2}}-\frac{d \cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 \sqrt{-a} b^{3/2}}-\frac{d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 \sqrt{-a} b^{3/2}}-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.325431, antiderivative size = 239, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.294, Rules used = {5289, 5280, 3303, 3298, 3301} \[ -\frac{d \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Chi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 \sqrt{-a} b^{3/2}}+\frac{d \sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 \sqrt{-a} b^{3/2}}-\frac{d \cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+c\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 \sqrt{-a} b^{3/2}}-\frac{d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (x d+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 \sqrt{-a} b^{3/2}}-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5289
Rule 5280
Rule 3303
Rule 3298
Rule 3301
Rubi steps
\begin{align*} \int \frac{x \cosh (c+d x)}{\left (a+b x^2\right )^2} \, dx &=-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )}+\frac{d \int \frac{\sinh (c+d x)}{a+b x^2} \, dx}{2 b}\\ &=-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )}+\frac{d \int \left (\frac{\sqrt{-a} \sinh (c+d x)}{2 a \left (\sqrt{-a}-\sqrt{b} x\right )}+\frac{\sqrt{-a} \sinh (c+d x)}{2 a \left (\sqrt{-a}+\sqrt{b} x\right )}\right ) \, dx}{2 b}\\ &=-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac{d \int \frac{\sinh (c+d x)}{\sqrt{-a}-\sqrt{b} x} \, dx}{4 \sqrt{-a} b}-\frac{d \int \frac{\sinh (c+d x)}{\sqrt{-a}+\sqrt{b} x} \, dx}{4 \sqrt{-a} b}\\ &=-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac{\left (d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{4 \sqrt{-a} b}+\frac{\left (d \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\sinh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{4 \sqrt{-a} b}-\frac{\left (d \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{\sqrt{-a}+\sqrt{b} x} \, dx}{4 \sqrt{-a} b}-\frac{\left (d \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )\right ) \int \frac{\cosh \left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{\sqrt{-a}-\sqrt{b} x} \, dx}{4 \sqrt{-a} b}\\ &=-\frac{\cosh (c+d x)}{2 b \left (a+b x^2\right )}-\frac{d \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right ) \sinh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 \sqrt{-a} b^{3/2}}+\frac{d \text{Chi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right ) \sinh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right )}{4 \sqrt{-a} b^{3/2}}-\frac{d \cosh \left (c+\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}-d x\right )}{4 \sqrt{-a} b^{3/2}}-\frac{d \cosh \left (c-\frac{\sqrt{-a} d}{\sqrt{b}}\right ) \text{Shi}\left (\frac{\sqrt{-a} d}{\sqrt{b}}+d x\right )}{4 \sqrt{-a} b^{3/2}}\\ \end{align*}
Mathematica [C] time = 0.513809, size = 239, normalized size = 1. \[ \frac{i \left (d \left (a+b x^2\right ) \sinh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (-\frac{\sqrt{a} d}{\sqrt{b}}+i d x\right )-d \left (a+b x^2\right ) \sinh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{CosIntegral}\left (\frac{\sqrt{a} d}{\sqrt{b}}+i d x\right )+i \left (d \left (a+b x^2\right ) \cosh \left (c-\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{Si}\left (\frac{\sqrt{a} d}{\sqrt{b}}-i d x\right )+d \left (a+b x^2\right ) \cosh \left (c+\frac{i \sqrt{a} d}{\sqrt{b}}\right ) \text{Si}\left (i x d+\frac{\sqrt{a} d}{\sqrt{b}}\right )+2 \sqrt{a} \sqrt{b} \cosh (c+d x)\right )\right )}{4 \sqrt{a} b^{3/2} \left (a+b x^2\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 291, normalized size = 1.2 \begin{align*} -{\frac{{d}^{2}{{\rm e}^{-dx-c}}}{4\,b \left ( b{d}^{2}{x}^{2}+a{d}^{2} \right ) }}-{\frac{d}{8\,b}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{d}{8\,b}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}-{\frac{{d}^{2}{{\rm e}^{dx+c}}}{4\,b \left ( b{d}^{2}{x}^{2}+a{d}^{2} \right ) }}-{\frac{d}{8\,b}{{\rm e}^{{\frac{1}{b} \left ( d\sqrt{-ab}+cb \right ) }}}{\it Ei} \left ( 1,{\frac{1}{b} \left ( d\sqrt{-ab}- \left ( dx+c \right ) b+cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}}+{\frac{d}{8\,b}{{\rm e}^{-{\frac{1}{b} \left ( d\sqrt{-ab}-cb \right ) }}}{\it Ei} \left ( 1,-{\frac{1}{b} \left ( d\sqrt{-ab}+ \left ( dx+c \right ) b-cb \right ) } \right ){\frac{1}{\sqrt{-ab}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.16685, size = 1393, normalized size = 5.83 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \cosh \left (d x + c\right )}{{\left (b x^{2} + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]